<?php

/**
 * Created by ymk
 * User: Administrator
 * Date: 2018/7/2
 * Time: 17:16
 */

namespace MeetUp\Model;

use Illuminate\Database\Eloquent\Model;

class UserGroup extends Base
{
    protected $table = 'user_group';
    protected $primaryKey = 'groupid';
    protected $fillable = ['groupid','uid','is_admin'];
    //关联分组
    public function group(){
        return $this->hasMany('MeetUp\Model\Group','group_id','groupid');
    }
}